/*
This file is part of maven-bugzilla-plugin.

    maven-bugzilla-plugin is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    maven-bugzilla-plugin is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with maven-bugzilla-plugin.  If not, see <http://www.gnu.org/licenses/>.
 */
package nl.semlab.maven.plugin.bugzilla.model;

import java.util.Map;

/**
 * A bugzilla product.
 * <p />
 * Project maven-bugzilla-plugin<br />
 * BugzillaProduct.java created 20 Apr 2009
 * <p />
 * Copyright &copy 2009 SemLab
 * 
 * @author <a href="mailto:borsje@semlab.nl">J.A. Borsje</a>
 * @version $Revision: 1.1 $, $Date: 2009-08-03 10:04:21 $
 */
public class BugzillaProduct
{
   // private String id;
   // private String description;
   // private String name;
   // private String votestoconfirm;
   // private String classification_id;
   // private String votesperuser;
   // private String milestoneurl;
   // private String maxvotesperbug;
   // private String disallownew;
   // private String defaultmilestone;

   /**
    * Create a Bugzilla product.
    * 
    * @param product
    *           A map which contains all information about the product. This map
    *           is returned by the Bugzilla Webservice and looks like this:
    * 
    *           <pre>
    *           { 
    *               id=26, 
    *               description=A plugin which handles integration of Bugzilla into Maven., 
    *               name=maven-bugzilla-plugin, 
    *               internals=
    *               {
    *                   id=26, 
    *                   votestoconfirm=0, 
    *                   classification_id=1, 
    *                   votesperuser=0, 
    *                   milestoneurl=, 
    *                   description=A plugin which handles integration of Bugzilla into Maven., 
    *                   maxvotesperbug=10000, 
    *                   name=maven-bugzilla-plugin, 
    *                   disallownew=0, 
    *                   defaultmilestone=Next release
    *               }
    *           }
    * </pre>
    */
   public BugzillaProduct(Map<String, Object> product)
   {
      // TODO: get the field from the map.
   }
}